package com.sise.wangzhan.client;

import com.sise.wangzhan.entity.Person;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Classname PersonService
 * @Description TODO
 * @Date 2020/5/14 11:37
 * @Created by wangzhan
 */
@FeignClient("zuul-person-service")
public interface PersonService {
    @RequestMapping(method = RequestMethod.GET, value = "/person/{personId}")
    Person getPerson(@PathVariable("personId") Integer personId);

}
